package com.example.springboot.config.event.normal;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/12/2 10:44
 */
@Slf4j
@Component
public class MyApplicationEventListener implements ApplicationListener<MyApplicationEvent> {
    @Override
    public void onApplicationEvent(MyApplicationEvent event) {
        log.info("【监听到事件MyApplicationEvent】" + event.toString());
    }
}
